﻿#include <iostream>
using namespace std;

int main() {
	char c;

	cout << "请输入字符：";

	cin >> c;

	cout << "字符" << c << "的编码是：" << int(c) << endl;

	cin.get();
	cin.get();
}